<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"/www/wwwroot/api.bjxlxd.com/public/../application/admin/view/selected/selected_info.html";i:1597987801;s:67:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/menu.html";i:1598405662;s:69:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/header.html";i:1597137338;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><?php echo $rs['title']; ?></title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">

<!--    &lt;!&ndash; Styles &ndash;&gt;
    <link href="/static/admin/css/lib/rangSlider/ion.rangeSlider.css" rel="stylesheet">  &lt;!&ndash;Themes Jquery Bar Rating&ndash;&gt;
    <link href="/static/admin/css/lib/rangSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">  &lt;!&ndash;Themes Jquery Bar Rating&ndash;&gt;
    <link href="/static/admin/other/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/mmc-chat.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/sidebar.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
    <link href="/static/admin/css/uploads/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/uploads/bootstrap-fileinput.css" rel="stylesheet">-->


    <!-- Styles -->
    <link href="/static/admin/css/lib/rangSlider/ion.rangeSlider.css" rel="stylesheet">  <!--Themes Jquery Bar Rating-->
    <link href="/static/admin/css/lib/rangSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">  <!--Themes Jquery Bar Rating-->
    <link href="/static/admin/other/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/mmc-chat.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/sidebar.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
    <link href="/static/admin/css/upload/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/upload/bootstrap-fileinput.css" rel="stylesheet">
</head>

<body>
<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <li><a href="/admin/Index"><i class="ti-home"></i> 数据概览</a></li>

                <?php if(in_array((\think\Cookie::get('admin_id')), explode(',',"1"))): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="ti-layout-grid4-alt"></i> 后台栏目管理 <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <li><a href="/admin/Menu">栏目列表</a></li>
                    </ul>
                </li>
                <li><a href="/admin/AdminUser"><i class="ti-github"></i> 后台管理员</a></li>
                <?php endif; if(is_array($topMenu) || $topMenu instanceof \think\Collection || $topMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $topMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!empty($vo['secondMenu'])): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?> <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <?php if(is_array($vo['secondMenu']) || $vo['secondMenu'] instanceof \think\Collection || $vo['secondMenu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['secondMenu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                        <li><a href="/admin/<?php echo $vi['class']; ?>"><?php echo $vi['name']; ?></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php else: ?>
                <li><a href=""><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <!--<li><a href="/admin/loginOut"><i class="ti-close"></i> Logout</a></li>-->
            </ul>
        </div>
    </div>
</div>
<!-- /# sidebar -->

<div class="header">
    <div class="pull-left">
        <div class="logo">
            <a href="index.html"></a>
        </div>
        <div class="hamburger sidebar-toggle">
            <span class="ti-menu"></span>
        </div>
    </div>
    <div class="pull-right p-r-15">
        <ul>
            <li class="header-icon dib">
                <i class="ti-bell"></i>
                <div class="note-count">0</div>
                <div class="drop-down">
                    <div class="dropdown-content-body">
                        <ul>
                            <li>
                                <a href="/admin/demandList">
                                    <div class="notification-content">
                                        <div class="notification-heading">&nbsp;</div>
                                        <div class="notification-heading">有新的活动需求单</div>
                                        <div class="notification-heading">&nbsp;</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </li>

            <li class="header-icon dib">
                <img class="avatar-img" src="/static/admin/img/avatar/1.jpg" alt="" /> <span class="user-avatar"><?php echo \think\Cookie::get('admin_name'); ?> </span>
            </li>
        </ul>
    </div>
</div>


<script>
    window.onload = function(){
        getNum();
    }
    var ref = "";
    ref = setInterval(function(){
        getNum();
    },10000);
    function getNum(){
        $.ajax({
            type: 'POST',
            url: '/admin/Demand/getNum',
            data:{
            },
            dataType: 'json',
            success: function(data){
                $(".note-count").html(data.num);
            },
        });
    }
</script>
<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <h1></h1>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a href="#">精选酒店</a></li>
                                <li class="active">酒店详情</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>

            <div class="main-content" style="">
                <div class="row">
                    <form action="<?php echo url('admin/Selected/selectedInfo'); ?>" enctype="multipart/form-data" method="post">
                        <input type="hidden" name="id" value="<?php echo $rs['id']; ?>">
                        <div class="col-lg-12">
                            <div class="card alert">
                                <div class="card-body">
                                    <div class="basic-elements">
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label>酒店名称</label>
                                                    <input type="text" class="form-control" name="title" value="<?php echo $rs['title']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>地址</label>
                                                    <textarea class="form-control" rows="3" name="detail" placeholder="Text input"><?php echo $rs['detail']; ?></textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>最小人数</label>
                                                    <input class="form-control" type="text" name="number_min" value="<?php echo $rs['number_min']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>最大人数</label>
                                                    <input class="form-control" type="text" name="number_max" value="<?php echo $rs['number_max']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>最小面积</label>
                                                    <input class="form-control" type="text" name="area_min" value="<?php echo $rs['area_min']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>最大面积</label>
                                                    <input class="form-control" type="text" name="area_max" value="<?php echo $rs['area_max']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>客房数量</label>
                                                    <input class="form-control" type="text" name="guest" value="<?php echo $rs['guest']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>宴会厅数量</label>
                                                    <input class="form-control" type="text" name="banquet" value="<?php echo $rs['banquet']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>特色（多个用空格隔开）</label>
                                                    <input class="form-control" type="text" name="tese" value="<?php echo $rs['tese']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>排序（倒序）</label>
                                                    <input class="form-control" type="text" name="list_sort" value="<?php echo $rs['list_sort']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>首页展示位置（倒序，0：为不展示）</label>
                                                    <input class="form-control" type="text" name="index_sort" value="<?php echo $rs['index_sort']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>经纬度（<a target="_blank" href="https://lbs.amap.com/console/show/picker">点击：高德地图查询</a>）</label>
                                                    <input class="form-control" type="text" name="location" value="<?php echo $rs['location']; ?>">
                                                </div>
                                            </div>
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label>封面图</label>
                                                    <div class="card alert">
                                                        <div class="card-body">
                                                            <img src="<?php echo $rs['image']; ?>" id="cover" class="img-rounded img-responsive" alt="Cinque Terre" style="width: 300px;">
                                                        </div>
                                                    </div>
                                                    <input class="form-control" type="text" id="imgSrc" name="image" value="<?php echo $rs['image']; ?>">
                                                </div>
                                                <div class="form-group">
                                                    <label>视频封面组（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_image" placeholder="Text input"><?php echo $rs['vo_image']; ?></textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>视频组（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_vedio" placeholder="Text input"><?php echo $rs['vo_vedio']; ?></textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>轮播图（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_photo" placeholder="Text input"><?php echo $rs['vo_photo']; ?></textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>城市</label>
                                                    <select class="form-control" name="city_id">
                                                        <option value="<?php echo $rs['city_id']; ?>"><?php echo $rs['city_id']; ?></option>
                                                        <?php if(is_array($citysList) || $citysList instanceof \think\Collection || $citysList instanceof \think\Paginator): $i = 0; $__LIST__ = $citysList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                        <option value="<?php echo $vo['id']; ?>"><?php echo $vo['id']; ?>：<?php echo $vo['name']; ?></option>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>城区</label>
                                                    <select class="form-control" name="region">
                                                        <option value="<?php echo $rs['region']; ?>"><?php echo $rs['region']; ?></option>
                                                        <?php if(is_array($regionList) || $regionList instanceof \think\Collection || $regionList instanceof \think\Paginator): $i = 0; $__LIST__ = $regionList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                        <option value="<?php echo $vo['id']; ?>"><?php echo $vo['id']; ?>：<?php echo $vo['name']; ?></option>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>商业区</label>
                                                    <select class="form-control" name="business">
                                                        <option value="<?php echo $rs['business']; ?>"><?php echo $rs['business']; ?></option>
                                                        <?php if(is_array($businessList) || $businessList instanceof \think\Collection || $businessList instanceof \think\Paginator): $i = 0; $__LIST__ = $businessList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                        <option value="<?php echo $vo['id']; ?>"><?php echo $vo['id']; ?>：<?php echo $vo['name']; ?></option>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>地铁</label>
                                                    <select class="form-control" name="subway">
                                                        <option value="<?php echo $rs['subway']; ?>"><?php echo $rs['subway']; ?></option>
                                                        <?php if(is_array($subwayList) || $subwayList instanceof \think\Collection || $subwayList instanceof \think\Paginator): $i = 0; $__LIST__ = $subwayList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                        <option value="<?php echo $vo['id']; ?>"><?php echo $vo['id']; ?>：<?php echo $vo['name']; ?></option>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div><!-- /# column -->
                        <button type="submit" class="btn btn-primary btn-block m-b-10">修改</button>
                    </form>
                </div><!-- /# row -->
            </div>
        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="/static/admin/js/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="/static/admin/js/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="/static/admin/js/lib/sidebar.js"></script><!-- sidebar -->
<script src="/static/admin/js/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="/static/admin/js/lib/mmc-common.js"></script>
<script src="/static/admin/js/lib/mmc-chat.js"></script>
<script src="/static/admin/js/upload/bootstrap-fileinput.js"></script>
<script src="/static/admin/js/scripts.js"></script>

<script>
    $("#imgSrc").blur(function(){
        var img = $("#imgSrc").val();
        $("#cover").attr('src',img);
    });
</script>

</body>

</html>
